// Debug int type test (converted for `nrc test`)

func test_debug_int_comparisons() {
    println("Testing int type...")

    var x int = 42
    println("x =")
    println(x)

    println("Comparing x == 42")
    if x == 42 {
        println("x equals 42 - CORRECT")
    } else {
        println("x NOT equals 42 - ERROR")
    }
    assert(x == 42, "x should remain 42")

    var y = 42
    println("y =")
    println(y)

    println("Comparing y == 42")
    if y == 42 {
        println("y equals 42 - CORRECT")
    } else {
        println("y NOT equals 42 - ERROR")
    }
    assert(y == 42, "y should be 42")

    println("Comparing x == y")
    if x == y {
        println("x equals y - CORRECT")
    } else {
        println("x NOT equals y - ERROR")
    }
    assert(x == y, "x and y should be equal")
}
